package com.msb.serviceverificationcode;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Random;

@SpringBootApplication
@RestController
public class ServiceVerificationCodeApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceVerificationCodeApplication.class, args);
    }

    @GetMapping("/code/test")
    public String test(){
        for (int i = 0; i < 1000000000 ; i++) {
            String str = (Math.random() + "").substring(2, 8);
            if(str.length()<6){
                System.out.println(str);
            }
        }

        // System.out.println(Math.random());
        return null;
    }
}
